package cn.lzy.demo;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.DependsOn;

/**
 * @Description
 * @Author lzy
 * @Date 2023/11/30 10:45
 * @Version
 **/
public class JavaConfig {

    @Bean
    @DependsOn("a")
    B b() {
        return new B();
    }


    @Bean
    A a() {
        return new A();
    }
}

